package com.nil.codegen.config;

import com.nil.codegen.domain.vo.UserInfoVO;

public class AppContext {

    private static final ThreadLocal<UserInfoVO> currentUser = new ThreadLocal<>();

    public static UserInfoVO getCurrentUser() {
        return currentUser.get();
    }

    public static void setCurrentUser(UserInfoVO userInfoVO) {
        currentUser.set(userInfoVO);
    }

}
